package net.tuandn.training.model;

import java.util.List;

public class Country {
	private String code;
	private String name;
	private String localName;
	private Integer indepYear;
	private City capital;
	private List<City> cities;

	public Country(String code, String name, String localName, Integer indepYear, City capital) {
		super();
		this.code = code;
		this.name = name;
		this.localName = localName;
		this.indepYear = indepYear;
		this.capital = capital;
	}

	/*
	 * get/set methods for flexjson
	 */
	public void setCities(List<City> cities) {
		this.cities = cities;
	}

	public List<City> getCities() {
		return cities;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLocalName() {
		return localName;
	}

	public void setLocalName(String localName) {
		this.localName = localName;
	}

	public Integer getIndepYear() {
		return indepYear;
	}

	public void setIndepYear(Integer indepYear) {
		this.indepYear = indepYear;
	}

	public City getCapital() {
		return capital;
	}

	public void setCapital(City capital) {
		this.capital = capital;
	}
}
